diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(procurement)/risk-management/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(procurement)/risk-management/page.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(procurement)/risk-management/page.tsx b/app/[lng]/evcp/(evcp)/(procurement)/risk-management/page.tsx index c372865e..d2334ba5 100644 --- a/app/[lng]/evcp/(evcp)/(procurement)/risk-management/page.tsx +++ b/app/[lng]/evcp/(evcp)/(procurement)/risk-management/page.tsx @@ -13,11 +13,13 @@ import { Skeleton } from '@/components/ui/skeleton'; import { Suspense } from 'react'; import { type DateRange } from 'react-day-picker'; import { type SearchParams } from '@/types/table'; +import { useTranslation } from "@/i18n" // ---------------------------------------------------------------------------------------------------- /* TYPES */ interface RiskManagementPageProps { + params: Promise<{lng: string}> searchParams: Promise<SearchParams>; } @@ -29,6 +31,8 @@ async function RiskManagementPage(props: RiskManagementPageProps) { const searchParamsResult = await searchParams; const search = searchParamsCache.parse(searchParamsResult); const validFilters = getValidFilters(search.filters); + const {lng} = await props.params + const {t} = await useTranslation(lng, 'menu') const promises = Promise.all([ getRisksView({ ...search, @@ -52,12 +56,12 @@ async function RiskManagementPage(props: RiskManagementPageProps) { <div> <div className="flex items-center gap-2"> <h2 className="text-2xl font-bold tracking-tight"> - 협력업체 리스크 관리 + {t('menu.vendor_management.risk_by_agency')} </h2> <InformationButton pagePath="evcp/risk-management" /> </div> <p className="text-muted-foreground"> - 신용평가사 정보를 기반으로 국내 협력업체 리스크를 관리할 수 있습니다. + {t('menu.vendor_management.risk_by_agency_desc')} </p> </div> </div> |
